﻿@model IEnumerable<EdexApiClient.Invoices>

<table class="table table-striped zebra-striped tablesorter">
    <thead>
        <tr>
            <th>Получатель</th>
            <th>Склад</th>
            <th>Дата документа</th>
            <th>№ документа</th>
            <th>Сумма</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var record in Model) {
        <tr data-index="@record.GUID_RECORD">
            <td>@(record.CUSTOMER != null ? record.CUSTOMER.COMPANY_NAME : String.Empty)</td>
            <td>@(record.LOCATION != null ? record.LOCATION.LOCATION_NAME : String.Empty)</td>
            <td>@record.DOC_DATE.ToShortDateString()</td>
            <td>@record.DOC_NUMBER</td>
            <td>@record.TOTAL_AMOUNT</td>
        </tr>
        }
    </tbody>
</table>